import React from 'react'

function Dtext(props:any) {
    const { item } = props
  return (
    <>
        {
            item.component === 'drag-button' && <button style={item.style}>{item.propLable}</button>
        }
        {
            item.component === 'Dimg' && <img src={item.propLable} style={item.style}/>
        }
        {
            item.component === 'drag-rect' && <div style={item.style}></div>
        }
        {
            item.component === 'Dtext' && <input type="text" style={item.style} value={item.propLable}/>
        }
    </>
  )
}

export default Dtext